<?php
namespace app\admin\validate;
use think\Validate;
class Article extends Validate{
    protected $rule = [
        'title' => 'require',
        'cateid' => 'require'
    ];
    protected $message = [
        'title.require' => '用户名必填',
        // 'title.max' => '最大长度超过25',
        'cateid.require' => '所属栏目必须填'
    ];
}